#!/bin/sh

echo "Is it morning? Please answer yes or no"
read timeofday

case "$timeofday" in
  [Yy] | [Yy][Ee][Ss] ) 
    echo "Good Morning"
    echo "Up bright and early this morning"
    ;;
  [Nn] | [Nn][Oo] )
    echo "Good Afternoon"
    ;;
  * )
    echo "Sorry, answer not recognized"
    echo "Please answer yes or no"
    exit 1
    ;;
esac

exit 0
